﻿using System.Text.Json.Serialization;

namespace SyncService.Results
{
    public class ApiResult
    {
        public static readonly ApiResult Success = new ApiResult(0, "success");
        public ApiResult(int code, string message, dynamic? data = null)
        {
            Code = code;
            Message = message;
            Data = data;
        }
        [JsonPropertyName("code")]
        public int Code { get; set; }
        [JsonPropertyName("message")]
        public string Message { get; set; }
        [JsonPropertyName("data")]
        public dynamic? Data { get; set; }
    }
}
